home *** CD-ROM | disk | FTP | other *** search
-
-
-
- HHHHYYYYPPPPOOOOTTTT((((3333MMMM)))) HHHHYYYYPPPPOOOOTTTT((((3333MMMM))))
-
-
-
- NNNNAAAAMMMMEEEE
- hypot, hypotf, fhypot, hypotl, cabs, cabsf, fcabs, cabsl - Euclidean
- distance, complex absolute value
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<mmmmaaaatttthhhh....hhhh>>>>
-
- ddddoooouuuubbbblllleeee hhhhyyyyppppooootttt ((((ddddoooouuuubbbblllleeee xxxx,,,, ddddoooouuuubbbblllleeee yyyy))));;;;
- ffffllllooooaaaatttt ffffhhhhyyyyppppooootttt ((((ffffllllooooaaaatttt xxxx,,,, ffffllllooooaaaatttt yyyy))));;;;
- ffffllllooooaaaatttt hhhhyyyyppppoooottttffff ((((ffffllllooooaaaatttt xxxx,,,, ffffllllooooaaaatttt yyyy))));;;;
- lllloooonnnngggg ddddoooouuuubbbblllleeee hhhhyyyyppppoooottttllll ((((lllloooonnnngggg ddddoooouuuubbbblllleeee xxxx,,,, lllloooonnnngggg ddddoooouuuubbbblllleeee yyyy))));;;;
-
- ddddoooouuuubbbblllleeee ccccaaaabbbbssss ((((ssssttttrrrruuuucccctttt {{{{ ddddoooouuuubbbblllleeee aaaa,,,,bbbb;;;; }}}} zzzz))));;;;
- ffffllllooooaaaatttt ffffccccaaaabbbbssss ((((ssssttttrrrruuuucccctttt {{{{ ffffllllooooaaaatttt aaaa,,,,bbbb;;;; }}}} zzzz))));;;;
- ffffllllooooaaaatttt ccccaaaabbbbssssffff ((((ssssttttrrrruuuucccctttt {{{{ ffffllllooooaaaatttt aaaa,,,,bbbb;;;; }}}} zzzz))));;;;
- lllloooonnnngggg ddddoooouuuubbbblllleeee ccccaaaabbbbssssllll ((((ssssttttrrrruuuucccctttt {{{{ lllloooonnnngggg ddddoooouuuubbbblllleeee aaaa,,,,bbbb;;;; }}}} zzzz))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _h_y_p_o_t(_x,_y), _f_h_y_p_o_t(_x,_y), _h_y_p_o_t_f(_x,_y), _h_y_p_o_t_l(_x,_y), _c_a_b_s(_x,_y), _f_c_a_b_s(_x,_y),
- _c_a_b_s_f(_x,_y), and _c_a_b_s_l(_x,_y) return sqrt(x*x+y*y) computed in such a way
- that overflow will not happen, and underflow occurs only if the final
- result deserves it.
-
- _f_h_y_p_o_t, _h_y_p_o_t_f, _f_c_a_b_s, and _c_a_b_s_f are the same functions as _h_y_p_o_t and _c_a_b_s
- but for the float data type.
-
- _h_y_p_o_t_l, and _c_a_b_s_l are the same functions as _h_y_p_o_t and _c_a_b_s but for the
- long double data type.
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- In the diagnostics below, functions in the standard math library _l_i_b_m._a,
- are referred to as -_l_m versions, those in _l_i_b_m_x._a are referred to as -_l_m_x
- versions, and those in the the BSD math library _l_i_b_m_4_3._a, are referred to
- as -_l_m_4_3 versions. The -_l_m _a_n_d -_l_m_x versions always return the default
- Quiet NaN and set _e_r_r_n_o to EDOM when a NaN is used as an argument. A NaN
- argument causes the -_l_m_4_3 versions of the _h_y_p_o_t functions to return the
- same NaN, unless the other argument is HUGE_VAL, in which case HUGE_VAL
- is returned. The -_l_m_4_3 versions never set _e_r_r_n_o. The value of HUGE_VAL
- is IEEE Infinity.
-
- When the correct value would overflow, the _h_y_p_o_t functions return
- HUGE_VAL The -_l_m _a_n_d -_l_m_x versions also set _e_r_r_n_o to ERANGE. See
- matherr(3M) for a description of error handling for -_l_m_x functions.
-
- NNNNOOOOTTTTEEEESSSS
- Long double operations on this system are only supported in round to
- nearest rounding mode (the default). The system must be in round to
- nearest rounding mode when calling any of the long double functions, or
- incorrect answers will result.
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- HHHHYYYYPPPPOOOOTTTT((((3333MMMM)))) HHHHYYYYPPPPOOOOTTTT((((3333MMMM))))
-
-
-
- Users concerned with portability to other computer systems should note
- that the long double and float versions of these functions are optional
- according to the ANSI C Programming Language Specification ISO/IEC 9899 :
- 1990 (E).
-
- Long double functions have been renamed to be compliant with the ANSI-C
- standard, however to be backward compatible, they may still be called
- with the double precision function name prefixed with a q.
-
- hypot and cabs are not ANSI-C functions. If you compile with flag -ansi,
- you must supply your own prototypes for these functions or you will get
- incorrect results. (See the prototypes defined in /usr/include/math.h)
-
- EEEERRRRRRRROOOORRRR ((((dddduuuueeee ttttoooo RRRRoooouuuunnnnddddooooffffffff,,,, eeeettttcccc....))))
- Below 0.97 _u_l_ps. Consequently _h_y_p_o_t(5.0,12.0) = 13.0 exactly; in
- general, _h_y_p_o_t and _c_a_b_s return an integer whenever an integer might be
- expected.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- math(3M), sqrt(3M), matherr(3M)
-
- AAAAUUUUTTTTHHHHOOOORRRR
- W. Kahan
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-